DisCSP.CSPLexerParser
Class Lexer

java.lang.Object
  extended byjava.io.StreamTokenizer
      extended byDisCSP.CSPLexerParser.Lexer

public class Lexer
extends java.io.StreamTokenizer


Field Summary
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
Lexer(java.lang.String input)
          Costruttore di Lexer
 
Method Summary
 char getChar()
          Restituisce il prossimo token
 int getInt()
          Restituisce il prossimo token
protected  Token getNextToken()
          Restituisce il prossimo token
 java.lang.String getString()
          Restituisce il prossimo token
 
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lexer

public Lexer(java.lang.String input)
Costruttore di Lexer

Parameters:
input - la stringa da cui il lexer ottiene i token
Method Detail

getNextToken

protected Token getNextToken()
                      throws LexerException
Restituisce il prossimo token

Returns:
Token trovato nella posizione succesiva a quella corrente
Throws:
LexerException

getInt

public int getInt()
           throws LexerException
Restituisce il prossimo token

Returns:
double trovato nella posizione succesiva a quella corrente
Throws:
LexerException

getChar

public char getChar()
             throws LexerException
Restituisce il prossimo token

Returns:
char trovato nella posizione succesiva a quella corrente
Throws:
LexerException

getString

public java.lang.String getString()
                           throws LexerException
Restituisce il prossimo token

Returns:
String trovata nella posizione succesiva a quella corrente
Throws:
LexerException